//
//  YSContentView.h
//  YSPageViewExample_OC
//
//  Created by MOLBASE on 2017/12/5.
//  Copyright © 2017年 YangShen. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YSPageStyle, YSContentView;

@protocol YSContentViewDelegate
- (void)contentView:(YSContentView *)contentView targetIndex:(NSInteger)targetIndex;
- (void)contentView:(YSContentView *)contentView targetIndex:(NSInteger)targetIndex offsetX:(CGFloat)offsetX;
@end

@interface YSContentView : UIView
@property (nonatomic, weak) id <YSContentViewDelegate> delegate;
- (instancetype)initWithFrame:(CGRect)frame childVcs:(NSArray<UIViewController *> *)childVcArray parentVc:(UIViewController *)parentVc style:(YSPageStyle *)style;

@end
